import { ref } from "vue";

/**
 * 启用
 */
export const ENABLE = "1";

/**
 * 禁用
 */
export const DISABLE = "0";

/**
 * 处理流程
 */
export function useHandleProcess() {
  /**
   * 是否评论
   */
  const adviceStatus = ref("1");

  /**
   * 是否签名
   */
  const signatureStatus = ref("0");

  /**
   * 拥有哪些操作按钮
   */
  const operationBtnList = ref<string[] | null>(null);

  /**
   * 表单校验是否通过
   */
  const formValidateStatus = ref(false);

  return {
    adviceStatus,
    signatureStatus,
    operationBtnList,
    formValidateStatus
  };
}

export const handleProcessFunc = useHandleProcess();
